/*
 * @Author: 谢子健 1075010289@qq.com
 * @Date: 2024-05-10 20:28:54
 * @LastEditors: 谢子健 1075010289@qq.com
 * @LastEditTime: 2024-05-11 00:03:08
 * @FilePath: \project\src\utils\token.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 封装本地存储数据与读取数据方法
export const SET_TOKEN = (token: string) => {
  localStorage.setItem('TOKEN', token)
}

export const GET_TOKEN = () => {
  return localStorage.getItem('TOKEN')
}

export const REMOVE_TOKEN = () => {
  localStorage.removeItem('TOKEN')
}
